class AddBaseData < ActiveRecord::Migration
  
  def self.up
    ## criando tipos
    Type.new( :name => 'Produto' ).save!
    Type.new( :name => 'Suprimento' ).save!
    ## criando marcas
    Label.new( :name => 'HP' ).save!
    Label.new( :name => 'Xerox' ).save!
    ## criando categorias
    Category.new( :name => 'Copiadoras' ).save!
    Category.new( :name => 'Toners' ).save!
  end

  def self.down
    [ Type, Label, Category ].each{ |i| i.delete_all }
  end

end
